﻿@inherits E2ECommonTestHashBase
<h1>CommonIndex Test</h1>

<input type="file" @ref=inputElement id="file-input" />
<br />
<br />
<input type="checkbox" @bind=DebugOutput id="use-debug-output-check" />
<label for="useDebugOutput">Debug output</label>
<br />
<input type="checkbox" @bind=UseBufferSize id="use-buffer-size-check" />


<label for="useBufferSizeCheck">Use buffer size</label>
<input type="number" @bind=BufferSize alt="buffersize" placeholder="Buffer size" id="buffer-size" />
<br />
<input type="checkbox" @bind=OutputString id="dump-file-content-check" />
<label for="dumpFileContent">Dump file content</label>
<br />
<br />
<button @onclick=HashFile class="btn btn-primary" id="chunked-button">Hash SHA256 of file - chunked</button>
<button @onclick=HashFileRam style="margin-left:20px;" class="btn btn-primary" id="full-ram-button">Hash SHA256 of file - full-ram</button>
<button @onclick=HashFileOffset style="margin-left:20px;" class="btn btn-primary" id="chunked-offset-button">Hash SHA256 of file - chunked with offset</button>
<button @onclick=HashFileRamOffset style="margin-left:20px;" class="btn btn-primary" id="full-ram-offset-button">Hash SHA256 of file - full-ramw ith offset</button>
<br />
<br />

<h3>Log output</h3>
<textarea style="max-width: 100%;" cols="50" rows="20" id="debug-output">@Output</textarea>